import request from '@/utils/request'

export function typeList() {
  return request({
    url: '/productcsy/product/type/typeList',
    method: 'get'
  })
}

export function addType(data) {
  return request({
    url: '/productcsy/product/type/addType',
    method: 'post',
    data: data
  })
}

export function updateType(data) {
  return request({
    url: '/productcsy/product/type/updateType',
    method: 'post',
    data: data
  })
}

export function delType(productTypeId) {
  return request({
    url: '/productcsy/product/type/delType?productTypeId='+productTypeId,
    method: 'get'
  })
}
